import random
n=int(input())
k=0
for i in range(0,n):
   x=random.randrange(-100,101)
   y=random.randrange(-100,101)
   print(x,y)
   if -7<=x<=5 and -8<=y<=5:
      k=k+1
print("vistreli",n)
print("popadania",k)
